/**
 * 驱动实体
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.system',['water.common.AJAXService']);
	
	module.service('$systemService',function($AJAXService){
				
		/**
		 * 获取驱动
		 */
		this.restart = function(key){
			var promise = $AJAXService.post("/system/start");
			return promise;
		}

        /**
         * 获取软件版本
         */
        this.getVersion = function(){
            var promise = $AJAXService.post("/system/version");
            return promise;
        }
		
	})
}(window, angular));